package com.hk.blog.repository.jpa;

import com.hk.blog.domain.Role;
import com.hk.core.data.jpa.repository.LongIdJpaRepository;

import java.util.Optional;

public interface RoleRepository extends LongIdJpaRepository<Role> {

    Optional<Role> findByRoleCode(String roleCode);

    boolean existsByRoleCode(String roleCode);
}
